<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <!--    <script src="./node_modules/jquery/dist/jquery.js"></script>-->
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<h1>
    <button onclick="qingqiu()">ajax</button>
</h1>
<script>
    function qingqiu() {

        $.ajax({
                url: '/',
                type: 'GET',
                datatype: 'json',
                success: function (data) {
                    console.log(data)
                }
            }
        )
        // $.ajax({
        //     url:'/',
        //     type:'get',
        //     data:{},
        //     datatype:'json',
        //     success:function(data){
        //         console.log(data);
        //     }
        // });

    }

</script>
</body>
</html>
